﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtCore>
#include <QtGui>
#include "PatternStore.h"
#include "texture_wrapper.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);

    patternstore all_store;  //都可以访问
    int flag1 = 0;

    ~MainWindow();

private:
    Ui::MainWindow *ui;



    //文字选取
    QString text1;
    int text1_radius;
    int text1_size;
    int text1_angle;
    int text1_spacing;
    int cur_sel;   //选中的图案
    QString text1_family;

private slots:
//    void on_tableWidget_itemSelectionChanged();
    //void paintEvent(QPaintEvent* event);
    void on_saveText_clicked();

    void on_pushButton_2_clicked();
    void on_tableWidget_1_itemSelectionChanged();
    void on_tableWidget_1_cellClicked(int row, int column);
    void on_pushButton_3_clicked();
    void on_Button_addTexture_clicked();
    void on_Button_addNew_clicked();
    void on_comboBox_currentIndexChanged(const QString &arg1);
    void on_Button_delect_clicked();
};

#endif // MAINWINDOW_H
